/PROG  PNS0255
/ATTR
OWNER		= MNEDITOR;
COMMENT		= "TOOL_CHANGE";
PROG_SIZE	= 872;
CREATE		= DATE 12-04-18  TIME 18:51:58;
MODIFIED	= DATE 22-07-27  TIME 09:28:42;
FILE_NAME	= ;
VERSION		= 0;
LINE_COUNT	= 51;
MEMORY_SIZE	= 1332;
PROTECT		= READ_WRITE;
TCD:  STACK_SIZE	= 0,
      TASK_PRIORITY	= 50,
      TIME_SLICE	= 0,
      BUSY_LAMP_OFF	= 0,
      ABORT_REQUEST	= 0,
      PAUSE_REQUEST	= 0;
DEFAULT_GROUP	= 1,*,*,*,*;
CONTROL_CODE	= 00000000 00000000;
/MN
   1:  OVERRIDE=20% ;
   2:  LBL[1] ;
   3:  DO[34]=OFF ;
   4:  WAIT DI[24]=ON    ;
   5:  IF DI[13]=ON,JMP LBL[10] ;
   6:  IF DI[14]=ON,JMP LBL[20] ;
   7:  JMP LBL[1] ;
   8:   ;
   9:  LBL[10] ;
  10:  IF DI[25]=ON AND DI[26]=OFF,JMP LBL[100] ;
  11:  IF DI[25]=OFF AND DI[26]=ON,JMP LBL[200] ;
  12:  IF DI[25]=OFF AND DI[26]=OFF,JMP LBL[300] ;
  13:  JMP LBL[1] ;
  14:   ;
  15:  LBL[20] ;
  16:  IF DI[25]=ON,JMP LBL[400] ;
  17:  IF DI[26]=ON,JMP LBL[500] ;
  18:  JMP LBL[1] ;
  19:   ;
  20:  LBL[100] ;
  21:  CALL TL2_DROP    ;
  22:  WAIT UO[7]=ON    ;
  23:  CALL TL1_PICK    ;
  24:   ;
  25:  DO[34]=ON ;
  26:  END ;
  27:   ;
  28:  LBL[200] ;
  29:  CALL TL1_DROP    ;
  30:  WAIT UO[7]=ON    ;
  31:  CALL TL2_PICK    ;
  32:  DO[34]=ON ;
  33:  END ;
  34:   ;
  35:  LBL[300] ;
  36:  DO[40]=PULSE,1.0sec ;
  37:  JMP LBL[1] ;
  38:   ;
  39:  CALL TL1_DROP    ;
  40:  DO[34]=ON ;
  41:  END ;
  42:   ;
  43:  LBL[400] ;
  44:  CALL TL1_PICK    ;
  45:  DO[34]=ON ;
  46:  END ;
  47:   ;
  48:  LBL[500] ;
  49:  CALL TL2_PICK    ;
  50:  DO[34]=ON ;
  51:  END ;
/POS
/END
